<#import "../../layout.html" as c>
<#import "../../list_layout.html" as list>
<#assign alertList = []/>
<@c.html title="Index">
<@list.html title="积分规则管理" subTitle="积分规则管理" alertList=alertList permi="sys:commo:add" addBtn=false searchHint="请输入积分规则名称进行搜索">
</@list.html>
  <!-- ================== 开始页面所需CSS引入 ================== --> 
  <!-- 富文本编辑器 -->
  <link type="text/css" rel="stylesheet" href="${pluginsRoot}ueditor/themes/default/css/ueditor.css">
  <link type="text/css" rel="stylesheet" href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" />
  <link type="text/css" rel="stylesheet" href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" />
  <!-- ================== 开始页面所需CSS引入 ================== -->



  <@shiro.hasPermission name="sys:point:rule:edit">
  <input type="hidden" id="pointRuleEdit" value="1"/>
  </@shiro.hasPermission>
  <@shiro.hasPermission name="sys:point:rule:state">
  <input type="hidden" id="pointRuleStatus" value="1"/>
  </@shiro.hasPermission>

  <!-- 开始编辑积分规则模态窗口 -->
  <div class="modal fade" id="editModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h4 class="modal-title"> 编辑积分规则 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTipsEdit" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
        </div>
        <div class="modal-body">
          <form class="form-horizontal form-bordered p-0" action="${adminRoot}pointRule/json/edit" id="editForm" method="post" autocomplete="off" data-parsley-validate="true">
            <input type="hidden" name="id" value="">
              <div class="form-group">
                  <label class="control-label col-md-2 col-sm-3">规则标题<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                  <div class="col-md-9 col-sm-8">
                      <input type="text" name="title" class="form-control" placeholder="请输入规则标题" maxlength="30" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在2-30个字符。"  data-parsley-required="true" data-parsley-length="[2, 30]"/>
                  </div>
              </div>

              <div class="form-group">
                  <label class="control-label col-md-2 col-sm-3">规则参数<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                  <div class="col-md-9 col-sm-8">
                      <input type="text" name="value" class="form-control" placeholder="请输入规则参数" autocomplete="off" data-tip="tooltip" data-placement="auto"   data-parsley-required="true" />
                  </div>
              </div>

              <div class="form-group">
                  <label class="control-label col-md-2 col-sm-3">备注<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                  <div class="col-md-9 col-sm-8">
                      <input type="text" name="remark" class="form-control" placeholder="备注" maxlength="50" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在1-50个字符。"  data-parsley-required="true" data-parsley-length="[1, 50]"/>
                  </div>
              </div>
          </form>
          <!-- 结束设置模块-->
        </div>
        <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a></div>
      </div>
    </div>
  </div>
  <!-- 结束编辑公告模态窗口 -->


  <!-- ================== 开始页面级JavaScrip调用 ================== --> 
  <!-- 表单checkbox项 -->
  <script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
  <!-- 富文本编辑器 -->
  <script src="${pluginsRoot}ueditor/ueditor.config.js"></script>
  <script src="${pluginsRoot}ueditor/ueditor.all.js"></script>
  <script src="${pluginsRoot}ueditor/lang/zh-cn/zh-cn.js"></script>
  <!-- 时间控件 -->
  <script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>

  <script src="${jsRoot}operate/point_rule.handle.js"></script>
  <!-- ================== 结束页面级JavaScrip调用 ================== --> 
</@c.html>
